/*
 * =====================================================================================
 *
 *       Filename:  CCommonEmployee.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/05/2022 04:34:12 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "CommonEmployee.h"
#include <iostream>
using std::string;

CCommonEmployee::CCommonEmployee(void) {
    this->m_job = "";
}

CCommonEmployee::~CCommonEmployee(void) {
}

string CCommonEmployee::GetJob() {
    return this->m_job;
}

void CCommonEmployee::SetJob(string job) {
    this->m_job = job;
}

string CCommonEmployee::GetOtherInfo() {
    string job = "";
    job.append("工作：");
    job.append(this->m_job);
    job.append("\t");
    return job;
}

void CCommonEmployee::Accept(IVisitor* pVisitor) {
    pVisitor->Visit(*this);
}
